﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:vw="clr-namespace:CredentialsManager.Views"
                    xmlns:vm="clr-namespace:CredentialsManager.ViewModels">
    <DataTemplate x:Key="RoleDataTemplate">
        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>
            <Rectangle Grid.Column="0" Width="40" Margin="0, 5, 5, 5" Fill="{StaticResource systemusers}" />
            <TextBlock Text="{Binding}" Grid.Column="1" Margin="0, 10, 0, 10" />
        </Grid>
    </DataTemplate>
    <DataTemplate x:Key="UserDataTemplate">
        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>
            <Rectangle Grid.Column="0" Width="40" Margin="0, 5, 5, 5" Fill="{StaticResource systemuser}" />
            <TextBlock Text="{Binding}" Grid.Column="1" Margin="0, 10, 0, 10" />
        </Grid>
    </DataTemplate>
    <DataTemplate x:Key="ApplicationDataTemplate">
        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>
            <Rectangle Grid.Column="0" Width="40" Margin="0, 5, 5, 5" Fill="{StaticResource applicationssystem}" />
            <TextBlock Text="{Binding}" Grid.Column="1" Margin="0, 10, 0, 10" />
        </Grid>
    </DataTemplate>
    <DataTemplate DataType="{x:Type vm:ManagementViewModel}">
        <vw:ManagementView />
    </DataTemplate>
    <DataTemplate DataType="{x:Type vm:ApplicationListViewModel}">
        <vw:ApplicationListView />
    </DataTemplate>
    <DataTemplate DataType="{x:Type vm:UserListViewModel}">
        <vw:UserListView />
    </DataTemplate>
    <DataTemplate DataType="{x:Type vm:RoleListViewModel}">
        <vw:RoleListView />
    </DataTemplate>
    <DataTemplate DataType="{x:Type vm:ServiceViewModel}">
        <vw:ServiceView />
    </DataTemplate>
</ResourceDictionary>